package com.lecture.springlecture.event.java.order;

import java.util.EventObject;

//事件类 继承EventObject标记为事件类
public class OrderEvent extends EventObject {
    private String orderNumber;

    public OrderEvent(Object source, String orderNumber) {
        super(source);
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() {
        return orderNumber;
    }
}
